$httpClient
$httpClient lets a capture rule script send its own HTTP request — for example to fetch a token, call a webhook, or build a response from another endpoint. It is available only inside capture rule scripts.
Methods
options may be a URL string or an object:
Callback
On success, error is null and response/data are provided. On failure (network error or timeout), error is a string and response/data are null.
Notes
- The request is sent over the physical network interface, so it does not loop back through the capture tunnel.
datais returned as text. Binary responses are not decoded.- The effective timeout is capped by the rule's own timeout — a script cannot outlive its rule.
- Redirects and cookies are not followed automatically.
